import { ChatMessage } from '@/types/chat-message';
import {MessageOperation} from "@/types/stomp";
import {SessionType} from "@/types/chat-session";

/**
 * 离线消息对象
 */
export interface ChatOfflineMessage {
    /** 消息列表 */
    content: ChatReceivedMessage[];
    /** 消息操作 */
    operation: MessageOperation;
}

export interface ChatReceivedMessage extends ChatMessage<any, any> {
    /** 消息操作类型 */
    operation: MessageOperation;
    /** 会话类型 0单聊 1群聊 */
    sessionType: SessionType;
}